<?php
//
// RSS FEED WRITER
// By Garry Conn
// Version 1.09.29.2012.0937
//
$rssitem = "<item>";
$rsstitle = "<title>$title</title>";
$rsslink = "<link>http://$serverurl/$url.php</link>";
$rssguid = "<guid isPermalink=\"true\">http://$serverurl.com/$url.php</guid>";
$rsspubdate = "<pubDate>".date('D, d M Y H:i:s O')."</pubDate>";
$rssdescription = "<description>$metadescription</description>";
$rssitem1 = "</item>";
$file_data = "".$rssitem."\n".$rsstitle."\n".$rsslink."\n".$rssguid."\n".$rsspubdate."\n".$rssdescription."\n".$rssitem1."\n";
$file_data .= file_get_contents('connpress/rss-data.txt');
file_put_contents('connpress/rss-data.txt', $file_data);
?>
